import request from '@/utils/request'

export function equipment (query) {
    return request({
        url: '/equipment',
        method: 'get',
        params: query
    })
}

export function equipmentList (query) {
    return request({
        url: '/equipment/list',
        method: 'get',
        params: query
    })
}

export function addequipment (data) {
    return request({
        url: '/equipment',
        method: 'post',
        data: data
    })
}
export function updateequipment (query) {
    return request({
        url: '/equipment',
        method: 'put',
        data: query
    })
}

export function equipmentById (id) {
    return request({
        url: `/equipment/${id}`,
        method: 'get'
    })
}

export function deleteeequipment (id) {
    return request({
        url: `/equipment/fakeDelete`,
        method: 'delete',
        params: id
    })
}
